%ion-modal-view#payments-modal(hide-nav-bar="true" ng-controller="PaymentsCtrl")

  .pad-bottom
    %ion-header-bar.bar-light(align-title="center")
      %h1.title.dark-blue 选择支付方式
      %button.button.button-clear(ng-click="closePad()" ng-if="!is_loading && !is_success")
        %i.icon.ion-ios-close-empty.go-back
        
    %ion-content.no-animation.bg-light
      .pad-body
        .list.list-divided.no-border
          .item.row.padding-15
            .col.flex-center-y
              您本次需要支付金额
            .col.flex-center-y.flex-right
              .item-note.normal.assertive {{ pay.purchase_amount_display | currency: "" }}
          %div(ng-if="!pay.is_recharge")
            .divider
            %a.item.item-icon-right.row.padding-15(ng-click="doPrerequisite('money')")
              .col.col-20.flex-center-y
                %img.logo(src="img/pay/money-pay.png")
              .col.flex-center-y.height-50px
                %div
                  .dark-blue 账户余额
                  .light-grey.small.margin-top-5 可用余额 {{ current_money | NumberFloor: 2 | currency: "" }}
              .col.col-10
                %i.icon.ion-ios-arrow-forward.more-arrow.font-size-20.light-grey
          %div(ng-repeat="card in bank_cards" ng-if="card.active")
            .divider
            %a.item.item-icon-right.row.padding-15(ng-click="doPrerequisite('card', card)")
              .col.col-20.flex-center-y
                %img.logo(ng-src="{{bank_logo(card)}}")
              .col.height-50px.no-padding-tb
                .dark-blue.center
                  %span {{ card.vname }}
                  %span.small（尾号{{ card.card_id | limitTo : -4 }}）
                .card-tip 单笔限额: {{card.recharge_limit_data.max_recharge_limit_per_t | currency: "" | NumberFloor: 0}}
                .card-tip 本日限额: {{card.recharge_limit_data.max_recharge_limit_per_day | currency: ""| NumberFloor: 0}}
              .col.col-10
                %i.icon.ion-ios-arrow-forward.more-arrow.font-size-20.light-grey
          .divider

        .margin-top-40 &nbsp;
